import http from "../../utils/request"
import qs from 'qs'

//请求用户数据
export const listQueryUser = (params) =>{
  return http.post('/user/listQueryUser',qs.stringify(params));
}
//添加或修改
export const saveOrUpdateUser = (data) =>{
  return http.post('/user/saveOrUpdateUser',qs.stringify(data));
}
//删除
export const delUser = (data) =>{
  return http.get('/user/delUser/'+data.id);
}
//批量删除
export const delUsers = (data) =>{
  return http.post('/user/delUsers',qs.stringify(data));
}
//查找一条
export const editUser = (data) =>{
  return http.post('/user/editUser/'+data.id);
}
//导出
export const downloadUsers = (data) =>{
  return http.post('/user/downloadUsers/');
}

export default {
  listQueryUser,
  saveOrUpdateUser,
  delUser,
  delUsers,
  editUser,
  downloadUsers
}
